import 'package:flutter/material.dart';
import 'package:get/get.dart';

class BottomUpTransition extends CustomTransition {
  @override
  Widget buildTransition(
    BuildContext context,
    Curve? curve,
    Alignment? alignment,
    Animation<double> animation,
    Animation<double> secondaryAnimation,
    Widget child,
  ) {
    return SlideTransition(
      position: Tween<Offset>(
        begin: Offset(0, 1), 
        end: Offset(0, 0), 
      ).animate(CurvedAnimation(parent: animation, curve: curve ?? Curves.linear)),
      child: child,
    );
  }
}
